const { Controller } = require("uni-cloud-router");
module.exports = class FavoritesController extends Controller {
	add(){
		const { ctx, service } = this;
		return this.service.favorites.add();
	}
	list(){
		const { ctx, service } = this;
		return this.service.favorites.list();
	}
	delete(){
		const { ctx, service } = this;
		return this.service.favorites.delete();
	}
	has(){
		const { ctx, service } = this;
		return this.service.favorites.has();
	}
};